﻿//*******************************************************
//      API-SMC(WDM)
//       FILE NAME       CSMCDEF.H
//********************************************************
public enum CSmcConst
{
	CSMC_PTP			=	1,
	CSMC_JOG			=	2,
	CSMC_ORG			=	3,
	CSMC_SINGLE			=	4,
	CSMC_LOOP			=	5,
	CSMC_ZMOVE			=	6,
	CSMC_PTP_EX			=	7,
	CSMC_SINGLE_EX		=	8,
	CSMC_LOOP_EX		=	9,
	CSMC_PLSER			=	10,

	CSMC_CW				=	0,
	CSMC_CCW			=	1,

	CSMC_ABS			=	0,
	CSMC_INC			=	1,

	CSMC_STOP			=	0,
	CSMC_PASS			=	1,

	CSMC_OUT1			=	1,
	CSMC_OUT2			=	2,
	CSMC_OUT3			=	4,

	CSMC_IN1			=	1,
	CSMC_IN2			=	2,
	CSMC_IN3			=	4,
	CSMC_IN4			=	8,
	CSMC_IN5			=	0x10,
	CSMC_IN6			=	0x20,
	CSMC_IN7			=	0x40,

	CSMC_STEP_0			=	0,
	CSMC_STEP_1			=	1,

	CSMC_HOLD			=	0,
	CSMC_HOLDOFF		=	1,

	CSMC_PLS_STOP		=	0,
	CSMC_PLS_FLCONST	=	1,
	CSMC_PLS_FHCONST	=	2,
	CSMC_PLS_READY		=	3,
	CSMC_PLS_ERCW		=	4,
	CSMC_PLS_DTMW		=	5,
	CSMC_PLS_ACCEL		=	6,
	CSMC_PLS_DECEL		=	7,
	CSMC_PLS_INPW		=	8,
	CSMC_PLS_PAPBW		=	9,

	CSMC_MOVE			=	0,
	CSMC_STOP_COMMAND	=	1,
	CSMC_SD_COMMAND		=	2,
	CSMC_STOP_OTHER		=	3,
	CSMC_STOP_ALARM		=	4,
	CSMC_STOP_PLIM		=	5,
	CSMC_STOP_MLIM		=	6,
	CSMC_STOP_SD		=	7,
	CSMC_ERROR_ORG		=	8,
	CSMC_ERROR_PULSER	=	9,
	CSMC_STOP_NORMAL	=	0XFF,

	CSMC_MESSAGE		=	0X8700,

	CSMC_DISABLE		=	0,
	CSMC_ENABLE			=	1,

	CSMC_OUTPULSE		=	0,
	CSMC_ENCODER		=	1,

	CSMC_LTC			=	0,

	CSMC_TRGERR			=	0,
	CSMC_TRGSTATUS		=	1,

	CSMC_TIMER			=	1,

	CSMC_ALM			=	0x1,
	CSMC_PLIM			=	0x2,
	CSMC_MLIM			=	0x4,
	CSMC_ORGLIM			=	0x8,
	CSMC_SD				=	0x10,

	CSMC_2PULSE			=	0,
	CSMC_1PULSE			=	1,

	CSMC_AB				=	0,
	CSMC_UD				=	1,

	CSMC_HOFF			=	1,
	CSMC_ALMCLR			=	2,
	CSMC_CNTCLR			=	4,

	CSMC_DISTANCE		=	0,
	CSMC_ANGLE			=	1,

	CSMC_ALLTIME		=	0,
	CSMC_LIM			=	1,

	CSMC_CTRL_PCS		=	0x1,
	CSMC_CTRL_ERC		=	0x2,
	CSMC_CTRL_EZ		=	0x4,
	CSMC_CTRL_CLR		=	0x8,
	CSMC_CTRL_LTC		=	0x10,
	CSMC_CTRL_SD		=	0x12,
	CSMC_CTRL_INP		=	0x40,
	CSMC_CTRL_DIRCCW	=	0x80,
	
	CSMC_PULSER_PTP		=	1,
	CSMC_PULSER_JOG		=	2,
	CSMC_PULSER_HOME_PULSE	=	4,
	CSMC_PULSER_HOME_ORG	=	5,
	CSMC_PULSER_INTER_LINE	=	6,
	CSMC_PULSER_INTER_ARC	=	7
}